import 'package:get/get.dart';

class FindingsController extends GetxController {
  List<String> list = [];
  String? recommendation;

  @override
  void onInit() {
    super.onInit();
    //获取已选专题
    if (Get.arguments['questionValidityName'] != null) {
      final List<String> questionValidityName = Get.arguments['questionValidityName'] as List<String>;
      for (var value in questionValidityName) {
        if (value == questionValidityName.last) {
          list.add(value);
        } else {
          list.add('$value、');
        }
      }
    }
    //获取建议
    if (Get.arguments['recommendation'] != null) {
      recommendation = Get.arguments['recommendation'] as String;
    }
  }
}
